<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>属性选择器</title>
		<style type="text/css">
			[name]{
				height: 80px;
				width: 800px;
				background-color: red;
			}
			[name=div2]{
				background-color: lightblue;
			}
			[name=div3]{
				background-color: blue;
			}
			[name1]{
				height: 40px;
				width: 500px;
				background-color: black;
			}
			[name1=div4]{
				background-color: green;
			}
			[name1=div5]{
				background-color: blue;
			}
			[name1=div6]{
				background-color: blue;
			}
		</style>
	</head>
	<body>
		<div name="div1">
			
		</div>
		
		<div name="div2">
			
		</div>
		
		<div name="div22">
			
		</div>
		
		<div name1="div4">
			
		</div>
		
		<div name1="div5">
			
		</div>
		
		<div name1="div6">
			
		</div>
	</body>
</html>